package com.example.taskscheduler;

import java.util.Date;

/**
 * @author linchuan
 * @since 2021-06-09 12:02
 */
class RunnableTask implements Runnable {
  private String message;

  public RunnableTask(String message) {
    this.message = message;
  }

  @Override
  public void run() {
    System.out.println(
        new Date()
            + " Runnable Task with "
            + message
            + " on thread "
            + Thread.currentThread().getName());
  }
}
